<template>
  <div id="app">
    <router-view />
    <theme-picker />
    <Upload></Upload>
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";
import { mapState } from "vuex";
import Upload from "./components/Upload/index.vue";
export default {
  name: "App",
  computed: {
  },
  components: { ThemePicker, Upload },
  mounted() {
    this.$store.dispatch("setSystemDefaultStye");
  },
  metaInfo() {
    return {
      title:
        this.$store.state.settings.dynamicTitle &&
        this.$store.state.settings.title,
      titleTemplate: (title) => {
        return title
          ? `${title} - ${process.env.VUE_APP_TITLE}`
          : process.env.VUE_APP_TITLE;
      },
    };
  },
  methods: {},
};
</script>
<style scoped>
#app .theme-picker {
  display: none;
}
</style>
<style>
#app {
  width: 100%;
  height: 100vh;
  background-color: var(--app-nav-bg);
}

.round26 {
  background-color: var(--app-primary-base);
}

#nprogress .bar {
  background: var(--app-primary-base) !important;
}
.mb-10 {
  margin-bottom: 10px;
}
</style>
